import {CHANGE_USERNAME} from "./constants";


const initialState = {
    username:"hehe"
}
function reducer(state=initialState,action){
    switch (action.type){
        case CHANGE_USERNAME:
            return {...state,username:action.payload}
        default:
            return state
    }

}


export default reducer
